// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-9-23

#ifndef __ROOMAVATAR_H_CLIENT_MAIN__
#define __ROOMAVATAR_H_CLIENT_MAIN__

#pragma once

#include <common\ui\wndcontainer.h>

class CJoyHtmlPanel;
class CJoyUserItem;

//##ModelId=44C4B5DA000F
class CJoyUserAvatar :
    public CJoyWnd
{
public:
	//##ModelId=44C4B5DA0012
    CJoyHtmlPanel* m_avatarView;
	//##ModelId=44C4B5DA001F
    int m_avatarSize;

	//##ModelId=44C4B5DA0020
    CJoyUserAvatar(void);
	//##ModelId=44C4B5DA0022
    virtual ~CJoyUserAvatar(void);

	//##ModelId=44C4B5DA0025
    void SetUserItem(CJoyUserItem* pItem);
	//##ModelId=44C4B5DA002E
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);

public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44C4B5DA0031
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44C4B5DA0034
    afx_msg void OnSize(UINT nType, int cx, int cy);
};

#endif  // __ROOMAVATAR_H_CLIENT_MAIN__
